package com.yzd.learnjava.iniialization;

import java.awt.datatransfer.StringSelection;

public class OptionalTrilingArguments {

	public static void main(String[] args) {
		f(1, "one");
		f(2, "two","three");
		f(0);
		f(3,"four","five","six");
	}
	
	static void f(int required, String... trailing) {
		System.out.println("required : " + required);
		for(String s : trailing) {
			System.out.println(s + " ");
		}
		System.out.println();
	}

}
